package cn.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;

import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 商家信息
 * </p>
 *
 * @author stylefeng
 * @since 2019-10-23
 */
@TableName("business_company")
public class BusinessCompany extends Model<BusinessCompany> {

    private static final long serialVersionUID = 1L;

    /**
     * 大类名称
     */
    @ApiModelProperty(value="id",hidden=true)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 
     */
    @ApiModelProperty(value="商家名称",name="name",example="上海恩泽保洁公司")
    private String name;
    /**
     * 联系方式
     */
    @ApiModelProperty(value="联系电话",name="phone",example="13044101793")
    private String phone;
    /**
     * 所在位置
     */
    @ApiModelProperty(value="所在位置",name="place",example="上海浦东唐镇")
    private String place;
    /**
     * 联系人
     */
    @ApiModelProperty(value="联系人",name="contacts",example="郭先生")
    private String contacts;
    /**
     * 大类缩写
     */
    @ApiModelProperty(value="大类缩写",name="cateId",example="zjg")
    @TableField("cate_id")
    private String cateId;
    /**
     * 大类别结构的版本
     */
    @ApiModelProperty(value="大类别结构的版本",name="version" ,example="1")
    private Integer version;
    /**
     * 扩展属性（用json来表示）
     */
    @ApiModelProperty(value="扩展属性（用json来表示）",name="ext" )
    private String ext;
    /**
     * 是否有效
     */
    @ApiModelProperty(value="是否有效",name="isValid" ,example="0")
    @TableField("is_valid")
    private Integer isValid;
    /**
     * 备注
     */
    @ApiModelProperty(value="备注")
    private String remark;
    /**
     * 创建人
     */
    @ApiModelProperty(value="createUser",hidden=true)
    @TableField("create_user")
    private String createUser;
    
    @TableField("create_time")
    @ApiModelProperty(value="createUser",hidden=true)
    private Date createTime;
    
    @ApiModelProperty(value="updateUser",hidden=true)
    @TableField("update_user")
    private String updateUser;
    
    @ApiModelProperty(value="updateTime",hidden=true)
    @TableField("update_time")
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getCateId() {
        return cateId;
    }

    public void setCateId(String cateId) {
        this.cateId = cateId;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BusinessCompany{" +
        ", id=" + id +
        ", name=" + name +
        ", phone=" + phone +
        ", place=" + place +
        ", contacts=" + contacts +
        ", cateId=" + cateId +
        ", version=" + version +
        ", ext=" + ext +
        ", isValid=" + isValid +
        ", remark=" + remark +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateTime=" + updateTime +
        "}";
    }
}
